import instance from "../utils/axios_config.js";


function getReportList(params) {
    return instance({
        url: '/report/allList',
        method: 'get',
        params: params
    })
}
function getReport(params) {
    return instance({
        url: '/report/list',
        method: 'post',
        data: {...params}
    })
}

// 修改页面反查详情接口
function queryReportById(id) {
    return instance({
        url: `/report/${id}`,
        method: 'get'
    })
}

function handleReport(params) {
    return instance({
        url: '/report',
        method: 'post',
        data: {...params}
    })
}

function updateReport(params) {
    return instance({
        url: '/report/handle',
        method: 'post',
        data: {...params}
    })
}

export {getReportList, getReport, queryReportById, handleReport, updateReport}
